﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_ShopManageModule.aspx.cs" Inherits="Admin_Admin_ShopManageModule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="adminheading">
        <tr>
            <th valign="middle" class="menus" align="left">
                商城文章模块管理
            </th>
            <td align="right">
                <div style="width: 100px">
                    <a href="Admin_ShopModule.aspx">新增模块</a></div>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID"
        OnDataBound="GridView1_DataBound" OnPageIndexChanging="GridView1_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="name" HeaderText="名称" />
            <asp:HyperLinkField HeaderText="标题" DataNavigateUrlFields="id" DataTextField="title"
                DataNavigateUrlFormatString="../List.aspx?CID={0}" Target="_blank" />
            <asp:BoundField DataField="status" HeaderText="状态" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                        CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('确定删除吗？')" OnCommand="Delete_OnClick"
                        Text="删除"></asp:LinkButton>
                    <asp:HyperLink ID="modifybutton" runat="server" NavigateUrl='<%#"Admin_ShopModule.aspx?Action=Modify&id="+ Eval("id") %>'>修改</asp:HyperLink>|
                    <a href="Admin_ShopIndexArticle.aspx?ModuleID=<%# Eval("id") %>">查看文章</a>
                </ItemTemplate>
                <HeaderStyle Width="16%" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            <tr>
                <th scope="col">
                    ID
                </th>
                <th scope="col">
                    名称
                </th>
                <th scope="col">
                    标题
                </th>
                <th scope="col">
                    状态
                </th>
                <th scope="col" style="width: 16%;">
                    操作
                </th>
            </tr>
            <tr>
                <td colspan="5">
                    暂无信息！
                </td>
            </tr>
        </EmptyDataTemplate>
    </asp:GridView>
</asp:Content>
